import request from '@/utils/request';

import webpath from '@/utils/webpath';

export async function query() {
  return request('/api/users');
}

export async function queryCurrent(params = {}) {

  return request(`/hrath/web/api/service/auth/currentUser`, {
        method: 'POST',
        data: {
            ...params,
            method: 'query',
        },
  });
}

export async function getCurrentUser(params = {}) {

  return request(`/hrath/web/api/service/promenu/getCurrentUser/`, {
        method: 'POST',
        data: {
            ...params,
            method: 'query',
        },
  });
}
